package com.spq.paramsverify.entity;

import lombok.Data;

import java.util.Date;

@Data
public class Student {
    private Long id;

    private String name;

    private Short age;

    private String sex;

    private String interest;

    private Date createTime;

    private Date modifyTime;

    public Student(Long id, String name, Short age, String sex, String interest, Date createTime, Date modifyTime) {
        this.id = id;
        this.name = name;
        this.age = age;
        this.sex = sex;
        this.interest = interest;
        this.createTime = createTime;
        this.modifyTime = modifyTime;
    }

    public Student() {
        super();
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public Short getAge() {
        return age;
    }

    public void setAge(Short age) {
        this.age = age;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex == null ? null : sex.trim();
    }

    public String getInterest() {
        return interest;
    }

    public void setInterest(String interest) {
        this.interest = interest == null ? null : interest.trim();
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getModifyTime() {
        return modifyTime;
    }

    public void setModifyTime(Date modifyTime) {
        this.modifyTime = modifyTime;
    }
}